from django.urls import path
from .views import (
    NotificationTemplateListView, NotificationTemplateDetailView,
    NotificationListView, NotificationDetailView,
    NotificationMarkReadView, NotificationMarkAllReadView,
    NotificationStatsView, EmailLogListView,
    SystemAnnouncementListView, SystemAnnouncementAdminListView,
    SystemAnnouncementAdminDetailView, UserNotificationPreferenceView,
    BulkNotificationCreateView, email_stats
)

urlpatterns = [
    path('templates/', NotificationTemplateListView.as_view(), name='notification-template-list'),
    path('templates/<int:pk>/', NotificationTemplateDetailView.as_view(), name='notification-template-detail'),
    
    path('notifications/', NotificationListView.as_view(), name='notification-list'),
    path('notifications/<int:pk>/', NotificationDetailView.as_view(), name='notification-detail'),
    path('notifications/<int:pk>/read/', NotificationMarkReadView.as_view(), name='notification-mark-read'),
    path('notifications/mark-all-read/', NotificationMarkAllReadView.as_view(), name='notification-mark-all-read'),
    path('notifications/stats/', NotificationStatsView.as_view(), name='notification-stats'),
    
    path('announcements/', SystemAnnouncementListView.as_view(), name='system-announcement-list'),
    path('admin/announcements/', SystemAnnouncementAdminListView.as_view(), name='system-announcement-admin-list'),
    path('admin/announcements/<int:pk>/', SystemAnnouncementAdminDetailView.as_view(), name='system-announcement-admin-detail'),
    
    path('preferences/', UserNotificationPreferenceView.as_view(), name='notification-preference'),
    path('bulk-notifications/', BulkNotificationCreateView.as_view(), name='bulk-notification-create'),
    
    path('email-logs/', EmailLogListView.as_view(), name='email-log-list'),
    path('email-stats/', email_stats, name='email-stats'),
]
